// 扫地机器人接口

import axios from '@/utils/request.js'

// 开始工作
export const start = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/start',
		data
	})
}

// 暂停工作
export const stop = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/stop',
		data
	})
}

// 开始集尘
export const stop = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/startDustArrest',
		data
	})
}

// 开始干燥
export const startDry = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/startDry',
		data
	})
}

// 停止干燥
export const stopDry = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/stopDry',
		data
	})
}

// 弹出来，什么都不干
export const stopDry = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/startEject',
		data
	})
}

// 开始充电
export const startCharge = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/startCharge',
		data
	})
}

// 更改清扫强度模式
export const changeCleaningMode = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/changeCleaningMode',
		data
	})
}

// 更改拖布湿度模式
export const changeMopMode = (data) => {
	return axios({
		method: 'POST',
		url: '/device/sweepingRobot/changeMopMode',
		data
	})
}
